package com.tanhua.dubbo.mongo.api;

import com.tanhua.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentApi {


    //分页查询评论列表
    List<Comment> findAllComments(String movementId, Integer page, Integer pagesize,int commentType);

    //评论-提交
    Integer saveComment(Comment comment1);

    //查询该条动态"我"是否有点赞,返回值布尔
    Boolean hasComment(String movementId, Long userId, int commentType);
    //动态-取消点赞 并返回动态的总点赞数////动态-取消喜欢 并返回动态的总喜欢数
    Integer dislike(String movementId, Long userId, int commentType);


    Integer saveVideoComment(Comment comment);

    Integer dislikeVideo(String videoId, Long userId, int commentType);
    //根据动态id查询到动态数据
    Comment findComments(Object commentsId);
    //小视频的评论点赞
    void addCommentsLike(Comment comment, Object commentId);
    //小视频的评论    取消点赞
    void addCommentsDisLike(Comment comment,Object commentId);
}
